lcWndPickEnt Home

Let user to pick some entity of a drawing. The size of the pickbox is defined by the LC_PROP_G_PICKBOXSIZE property.

 int lcWndPickEnt (
   HANDLE hLcWnd,
   LPCWSTR szTitle,
   LPCWSTR szCursorText
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
szTitle
  A text in the top-left corner of LiteCAD window. Can be empty string or NULL.
szCursorText
  A text near cursor. Usually a prompt for user action.

Return Value

  1 - entity has been picked. Get its handle with LC_PROP_WND_ENT property.
2 - user clicked on mouse right button.
3 - user pressed <Esc> key.

See Also

  Code sample